import { http } from "@/utils/http";

/** 获取所有人的帖子 */
export const getAllArticle = (params?: object) => {
  return http.request<any>("get", "/article/getAllArticle", { params });
};
/** 获取所有人的帖子评论 */
export const getAllcommentList = (params?: object) => {
  return http.request<any>("get", "/article/getAllcommentList", { params });
};
/** 修改帖子信息 */
export const updateArticle = (params?: object) => {
  return http.request<any>("post", "/user/updateArticle", { params });
};
/** 删除所有人的帖子 */
export const deleteArticle = (data?: object) => {
  return http.request<any>("delete", "/user/deleteArticle", { data });
};
/** 删除所有人的帖子评论 */
export const deletecomment = (data?: object) => {
  return http.request<any>("delete", "/user/deletecomment", { data });
};
